const jump = document.querySelectorAll("#top>ul>li");
const href = [
    "subpage1.html",
    "subpage2.html",
    "../index.html",
]
console.log(jump)
for (let i = 0; i < jump.length; i++) {
    jump[i].addEventListener('click', function () {
        window.location.href = href[i];
    })
}